package com.kenliang.netty.rpc;

import com.kenliang.netty.rpc.config.ClientConfig;
import com.kenliang.netty.rpc.spring.SpringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author KenLiang
 * @description:
 * @date Created in 10:57 AM 2019/3/18.
 */
@SpringBootApplication
@ImportResource("classpath:netty-rpc-server.xml")
public class RpcServerApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(RpcServerApplication.class, args);
        System.out.println(run.getBean(ClientConfig.class).messageCallbackTimeoutMillSeconds());
    }
}
